package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

/**
 * @author L5775
 */
public interface IPermissionService {

    void save(Permission permission);
    void delete(Long id);
    void update(Permission permission);

    Permission get(Long id);
    List<Permission> listAll();

    //分页查询的方法
    PageResult<Permission> query(QueryObject qo);

    //加载权限
    void reload();
    
    List<String> selectByEmpId(Long id);
}
